<%= javascript_include_tag 'jquery.tools.min' %>
<%= javascript_include_tag 'overlay' %>
<%= javascript_include_tag 'my_cart' %>


<%= render :partial =>'/store/toolbar'%>

<div id="content_container">

  <% if @cart && !@cart.items.empty? %>
    <div id="cart">
      <% if @cart %>
        <%= render(:partial => "/store/cart", :object => @cart) %>
      <%  end %>
    </div>
  <%else%>
    <div id="empty_cart">
      <p>您的购物车还是空的，赶快行动吧！</p>
    </div>
  <%end%>
  <p style="color:red;">小贴士：购物满3件免运费（EMS和顺丰快递5件以上免运费）。</p>

  <% if @user.orders.size > 0%>
    <%= render(:partial => "/products/buy_history", :object => @user.history_products) %>
  <% end %>

</div>

